package com.pxl.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pxl.springbootinit.model.dto.message.ChatMessageForm;
import com.pxl.springbootinit.model.entity.ChatMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pxl.springbootinit.model.vo.UserVO;

import java.util.List;

/**
* @author MADAO
* @description 针对表【chat_message(即时通讯表)】的数据库操作Service
* @createDate 2024-12-20 11:59:03
*/
public interface ChatMessageService extends IService<ChatMessage> {

    Page<ChatMessage> pageMessage(ChatMessageForm chatMessageForm);

    List<UserVO> listChatWithUser(Long userId);

    List<ChatMessage> listMessage(ChatMessageForm chatMessageForm);
}
